﻿<phone:PhoneApplicationPage 
    x:Class="ConfApp.Views.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:prismInteractionRequest="clr-namespace:Microsoft.Practices.Prism.Interactivity.InteractionRequest;assembly=Microsoft.Practices.Prism.Interactivity" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:Custom="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:prismInteractivity="clr-namespace:Microsoft.Practices.Prism.Interactivity;assembly=Microsoft.Practices.Prism.Interactivity" xmlns:PanoramaTest="clr-namespace:PanoramaTest" xmlns:Behaviours="clr-namespace:ConfApp.Infrastructure.Behaviours" xmlns:converters="clr-namespace:ConfApp.Infrastracture.Converters" xmlns:pag="clr-namespace:ConfApp.Infrastracture.Behaviours" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" 
    
    DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=MainViewModel}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <phone:PhoneApplicationPage.Resources>

        <!-- RESOURCES -->
        <converters:VisibilityConverter x:Key="VisibilityConverter"/>
        <converters:VisibilityConverter x:Key="NegativeVisibilityConverter" Negative="True"/>

        <!-- The group header template, for groups in the main list -->
        <DataTemplate x:Key="sessionGroupHeader">
            <Border Background="{StaticResource PhoneAccentBrush}" Padding="{StaticResource PhoneTouchTargetOverhang}">
                <TextBlock Text="{Binding Key}" Style="{StaticResource PhoneTextLargeStyle}"/>
            </Border>
        </DataTemplate>

        <!-- The template for groups when they are items in the "jump list". Not setting -->
        <!-- the GroupItemTemplate property will disable "jump list" functionality. -->
        <DataTemplate x:Key="groupItemHeader">
            <Border Background="{StaticResource PhoneAccentBrush}" Margin="{StaticResource PhoneTouchTargetOverhang}" Padding="{StaticResource PhoneTouchTargetOverhang}">
                <TextBlock Text="{Binding Key}" Style="{StaticResource PhoneTextLargeStyle}"/>
            </Border>
        </DataTemplate>

        <!-- The template for session items -->
        <DataTemplate x:Key="favouriteSessionItemTemplate">
            <Grid Margin="{StaticResource PhoneTouchTargetOverhang}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="3"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Rectangle Grid.Column="0" Margin="-6,0,6,0" Fill="{Binding TrackColor}"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                <StackPanel Grid.Column="1" VerticalAlignment="Top">
                    <TextBlock Text="{Binding TimeInfo}" Style="{StaticResource PhoneTextLargeStyle}" FontFamily="{StaticResource PhoneFontFamilyNormal}" Margin="12,-10,12,6"/>
                    <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextLargeStyle}" FontFamily="{StaticResource PhoneFontFamilySemiBold}" TextWrapping="Wrap"  Margin="12,3,0,9" />
                    <TextBlock Text="{Binding MinorInfo}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="12,3,0,9"  FontFamily="{StaticResource PhoneFontFamilyNormal}"/>
                    <TextBlock Text="{Binding Speakers}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="12,-30,12,9" FontFamily="{StaticResource PhoneFontFamilyNormal}"/>
                </StackPanel>
                <Custom:Interaction.Triggers>
                    <Custom:EventTrigger EventName="Tap">
                        <Custom:InvokeCommandAction Command="{Binding Path=DataContext.SessionSelectedCommand, ElementName=favouriteSessions}" CommandParameter="{Binding}"/>
                    </Custom:EventTrigger>
                </Custom:Interaction.Triggers>
            </Grid>
        </DataTemplate>

        <DataTemplate x:Key="nextSessionItemTemplate">
            <Grid Margin="{StaticResource PhoneTouchTargetOverhang}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="3"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Rectangle Grid.Column="0" Margin="-6,0,6,0" Fill="{Binding TrackColor}"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                <StackPanel Grid.Column="1" VerticalAlignment="Top">
                    <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextLargeStyle}" FontFamily="{StaticResource PhoneFontFamilySemiBold}" TextWrapping="Wrap" Margin="12,-10,12,6"/>
                    <TextBlock Text="{Binding FullInfo}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="12,3,0,9"  FontFamily="{StaticResource PhoneFontFamilyNormal}"/>
                    <TextBlock Text="{Binding Speakers}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="12,-30,12,9" FontFamily="{StaticResource PhoneFontFamilyNormal}"/>
                </StackPanel>
                <Custom:Interaction.Triggers>
                    <Custom:EventTrigger EventName="Tap">
                        <Custom:InvokeCommandAction Command="{Binding Path=DataContext.SessionSelectedCommand, ElementName=nextSessions}" CommandParameter="{Binding}"/>
                    </Custom:EventTrigger>
                </Custom:Interaction.Triggers>
            </Grid>
        </DataTemplate>
    </phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Synchronization Status Toast -->
        <Popup x:Name="SynchronizationToast">
            <Grid Background="{StaticResource PhoneAccentBrush}" VerticalAlignment="Bottom" Width="480">
                <TextBlock Text="{Binding Title}" HorizontalAlignment="Stretch" Foreground="Black" TextWrapping="Wrap" Margin="14,5,14,5">
                        <Custom:Interaction.Behaviors>
                            <pag:PopupHideOnLeftMouseUp/>
                        </Custom:Interaction.Behaviors>
                </TextBlock>
            </Grid>
        </Popup>
        <!--Panorama control-->
        <controls:Panorama 
            Name="panorama"
            Title="sinergija 11"
            Background="{Binding PanoramaBackgroundImage}"
            >
            <!--Background="{Binding PanoramaBackgroundImage}"-->

            <Custom:Interaction.Behaviors>
                <PanoramaTest:BindablePanoramaBehaviour TargetIndex="{Binding SelectedPanoramaIndex, Mode=TwoWay}" />
            </Custom:Interaction.Behaviors>
             
            <!--Panorama item one-->
            <controls:PanoramaItem Header="meni">
                <!--Double line list with text wrapping-->
                <StackPanel Orientation="Vertical" >
                    <StackPanel Orientation="Horizontal">
                        <StackPanel>
                            <HyperlinkButton Width="224"
                                Visibility="{Binding IsSynchronizing, Converter={StaticResource NegativeVisibilityConverter}}"                                
                                Style="{StaticResource PhoneHyperlinkWithIcon}" >
                                <HyperlinkButton.Content>
                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                        <Grid>
                                            <Ellipse Height="45" Width="45"  Stroke="{StaticResource PhoneForegroundBrush}" StrokeThickness="2" />
                                            <Image Source="{Binding TwittsRefreshImage}"/>
                                        </Grid>
                                        <TextBlock Margin="12,-3,0,0" 
                                               FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                               Style="{StaticResource PhoneTextNormalStyle}" 
                                               Text="osveži agendu" VerticalAlignment="Center"/>
                                    </StackPanel>
                                </HyperlinkButton.Content>
                                <Custom:Interaction.Triggers>
                                    <Custom:EventTrigger EventName="Click">
                                        <Custom:InvokeCommandAction Command="{Binding SyncCommand}"/>
                                    </Custom:EventTrigger>
                                </Custom:Interaction.Triggers>
                            </HyperlinkButton>
                            <StackPanel
                                Margin="12,0,0,0"
                                Visibility="{Binding IsSynchronizing, Converter={StaticResource VisibilityConverter}}"
                                Orientation="Horizontal" VerticalAlignment="Center">
                                <Grid>
                                    <Ellipse Height="45" Width="45"  Stroke="{StaticResource PhoneForegroundBrush}" StrokeThickness="2" />
                                    <Image Source="{Binding TwittsRefreshImage}"/>
                                </Grid>
                                <TextBlock Margin="12,-3,0,0"
                                               Width="152"
                                               FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                               Style="{StaticResource PhoneTextNormalStyle}" 
                                               Text="učitavam..." VerticalAlignment="Center"/>
                            </StackPanel>

                            <!--<TextBlock Height="56" Width="212" Margin="12,9,0,0"
                                           Visibility="{Binding IsSynchronizing, Converter={StaticResource VisibilityConverter}}"
                                                   FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                                   Style="{StaticResource PhoneTextNormalStyle}" 
                                                   Text="učitvam..." VerticalAlignment="Center"/>-->
                        </StackPanel>
                        <HyperlinkButton NavigateUri="/Views/AppSettingsView.xaml" Style="{StaticResource PhoneHyperlinkWithIcon}" >
                            <HyperlinkButton.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                    <Grid>
                                        <Ellipse Height="45" Width="45"  Stroke="{StaticResource PhoneForegroundBrush}" StrokeThickness="2" />
                                        <Image Source="{Binding AppSettingsImage}"/>
                                    </Grid>
                                    <TextBlock Margin="12,-3,0,0" 
                                           FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                           Style="{StaticResource PhoneTextNormalStyle}" 
                                           Text="podešavanja" VerticalAlignment="Center"/>
                                </StackPanel>
                            </HyperlinkButton.Content>
                        </HyperlinkButton>
                    </StackPanel>
                    <HyperlinkButton Content="agenda" NavigateUri="/Views/TrackListView.xaml" Style="{StaticResource PhoneHyperlinkMenuStyle}" />
                    <HyperlinkButton Content="predavači" NavigateUri="/Views/SpeakerListView.xaml" Style="{StaticResource PhoneHyperlinkMenuStyle}"/>
                    <HyperlinkButton Content="podcasts" NavigateUri="/Views/PodcastListView.xaml" Style="{StaticResource PhoneHyperlinkMenuStyle}"/>
                    <HyperlinkButton Content="o aplikaciji" Style="{StaticResource PhoneHyperlinkMenuStyle}">
                        <Custom:Interaction.Triggers>
                            <Custom:EventTrigger EventName="Click">
                                <Custom:InvokeCommandAction Command="{Binding AboutAppCommand}"/>
                            </Custom:EventTrigger>
                        </Custom:Interaction.Triggers>
                    </HyperlinkButton>
                    <TextBlock Margin="165,6,0,0"
                        Visibility="{Binding BeforeOpening, Converter={StaticResource VisibilityConverter}}"                      
                        TextWrapping="Wrap"                         
                        Width="258"
                        TextAlignment="Left"
                        FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                        Style="{StaticResource PhoneTextLargeStyle}" 
                        Text="{Binding Counter}" VerticalAlignment="Center"/>
                    <TextBlock Margin="160,6,0,0"
                        Visibility="{Binding BeforeOpening, Converter={StaticResource VisibilityConverter}}"                      
                        TextWrapping="Wrap"                         
                        Width="258"
                        TextAlignment="Right"
                        FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                        Style="{StaticResource PhoneTextLargeStyle}" 
                        Text="do Sinergije 11" VerticalAlignment="Center"/>
                    <TextBlock Margin="160,6,0,0"
                        Visibility="{Binding After, Converter={StaticResource VisibilityConverter}}"                      
                        TextWrapping="Wrap"                         
                        Width="258"
                        TextAlignment="Right"
                        FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                        Style="{StaticResource PhoneTextLargeStyle}" 
                        Text="Vidimo se na Sinergiji 12" VerticalAlignment="Center"/>
                </StackPanel>
            </controls:PanoramaItem>

            <!--Panorama item two-->
            <controls:PanoramaItem Header="sledi...">
                <Grid>
                    <StackPanel
                            Margin="0,-12,0,0"
                            Visibility="{Binding BeforeKeynote, Converter={StaticResource VisibilityConverter}}"                      
                        >
                        <TextBlock Margin="12,18,0,0"
                            Visibility="{Binding BeforeOpening, Converter={StaticResource VisibilityConverter}}"                      
                            TextAlignment="Center"
                            FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                            Style="{StaticResource PhoneTextExtraLargeStyle}" 
                            FontSize="48"
                            Text="Svečano otvaranje" VerticalAlignment="Center"/>
                        <TextBlock Margin="12,6,0,0"
                            Visibility="{Binding BeforeOpening, Converter={StaticResource VisibilityConverter}}"                      
                            TextAlignment="Center"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            Style="{StaticResource PhoneTextLargeStyle}" 
                            FontSize="36"
                            Text="Velika sala Sava Centra" VerticalAlignment="Center"/>
                        <TextBlock Margin="12,6,0,0"
                            Visibility="{Binding BeforeOpening, Converter={StaticResource VisibilityConverter}}"                      
                            TextAlignment="Center"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            Style="{StaticResource PhoneTextLargeStyle}" 
                            FontSize="36"
                            Text="18.10.2011., 20:00 č." VerticalAlignment="Center"/>

                        <TextBlock Margin="12,18,0,0"
                            TextAlignment="Center"
                            FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                            Style="{StaticResource PhoneTextExtraLargeStyle}" 
                            FontSize="48"
                            Text="Tehnički Keynote" VerticalAlignment="Center"/>
                        <!--<TextBlock Margin="12,6,0,0"
                            TextAlignment="Center"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            Style="{StaticResource PhoneTextLargeStyle}" 
                            FontSize="36"
                            Text="Velika sala Sava Centra" VerticalAlignment="Center"/>-->
                        <TextBlock Margin="12,6,0,0"
                            TextAlignment="Center"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            Style="{StaticResource PhoneTextLargeStyle}" 
                            FontSize="36"
                            Text="19.10.2011., 9:00 č." VerticalAlignment="Center"/>
                    </StackPanel>

                    <toolkit:LongListSelector x:Name="nextSessions" Background="Transparent"                    
                        Visibility="{Binding During, Converter={StaticResource VisibilityConverter}}"                      
                        ItemsSource="{Binding NextSessionInfos}"                     
                        GroupHeaderTemplate="{StaticResource sessionGroupHeader}"
                        GroupItemTemplate="{StaticResource groupItemHeader}"             
                        ItemTemplate="{StaticResource nextSessionItemTemplate}">
                    </toolkit:LongListSelector>
                    <TextBlock Margin="12,-132,0,0"
                        Visibility="{Binding After, Converter={StaticResource VisibilityConverter}}"                      
                        TextAlignment="Center"
                        FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                        Style="{StaticResource PhoneTextExtraLargeStyle}" 
                        FontSize="72"
                        Text="Sinergija 12" VerticalAlignment="Center"/>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item three-->
            <!--Use 'Orientation="Horizontal"' to enable a panel that lays out horizontally-->
            <controls:PanoramaItem Header="@mssinergija">
                    <StackPanel>
                        <StackPanel>
                        <HyperlinkButton  
                                Visibility="{Binding IsSynchronizing, Converter={StaticResource NegativeVisibilityConverter}}"
                                Style="{StaticResource PhoneHyperlinkWithIcon}" >
                            <HyperlinkButton.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                    <Grid>
                                        <Ellipse Height="45" Width="45"  Stroke="{StaticResource PhoneForegroundBrush}" StrokeThickness="2" />
                                        <Image Source="{Binding TwittsRefreshImage}"/>
                                    </Grid>
                                    <TextBlock Margin="12,-3,0,0" 
                                                       FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                                       Style="{StaticResource PhoneTextNormalStyle}" 
                                                       Text="učitaj nove" VerticalAlignment="Center"/>
                                </StackPanel>
                            </HyperlinkButton.Content>
                            <Custom:Interaction.Triggers>
                                <Custom:EventTrigger EventName="Click">
                                    <Custom:InvokeCommandAction Command="{Binding UpdateTwittsCommand}"/>
                                </Custom:EventTrigger>
                            </Custom:Interaction.Triggers>
                        </HyperlinkButton>
                        <StackPanel
                                Margin="12,0,0,17"
                                Visibility="{Binding IsSynchronizing, Converter={StaticResource VisibilityConverter}}"
                                Orientation="Horizontal" VerticalAlignment="Center">
                            <Grid>
                                <Ellipse Height="45" Width="45"  Stroke="{StaticResource PhoneForegroundBrush}" StrokeThickness="2" />
                                <Image Source="{Binding TwittsRefreshImage}"/>
                            </Grid>
                            <TextBlock Margin="12,-3,0,0" 
                                               FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                               Style="{StaticResource PhoneTextNormalStyle}" 
                                               Text="učitavam..." VerticalAlignment="Center"/>
                        </StackPanel>

                        <!--<TextBlock Height="56" Margin="12,9,0,0"
                                       Visibility="{Binding IsSynchronizing, Converter={StaticResource VisibilityConverter}}"
                                               FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                                               Style="{StaticResource PhoneTextNormalStyle}" 
                                               Text="učitvam..." VerticalAlignment="Center"/>-->
                        </StackPanel>
                    <ContentControl Template="{StaticResource NoTwittsTextBlock}" 
                    Visibility="{Binding TwittInfos.IsEmpty, Converter={StaticResource VisibilityConverter}}"
                                    />
                    <ListBox Margin="0,0,-12,0" ItemsSource="{Binding TwittInfos}" 
                            Visibility="{Binding TwittInfos.IsEmpty, Converter={StaticResource NegativeVisibilityConverter}}"                      
                             Height="400">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                                    <!--Replace rectangle with image-->
                                    <!--<Rectangle Height="100" Width="100" Fill="#FFE5001b" Margin="12,0,9,0"/>-->
                                    <StackPanel Width="400">
                                        <TextBlock Text="{Binding Text}" TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}"/>
                                        <TextBlock Text="{Binding Footer}" TextWrapping="Wrap" Margin="12,-6,12,0" FontSize="24" Style="{StaticResource PhoneTextSubtleStyle}"/>
                                    </StackPanel>
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                        <!--<ListBox.Template>
                            <ControlTemplate>
                                <ScrollViewer>
                                    <StackPanel>
                                    <ItemsPresenter />
                                        <Button Content="..."/>
                                    </StackPanel>
                                </ScrollViewer>
                            </ControlTemplate>
                        </ListBox.Template>-->
                    </ListBox>                            
                </StackPanel>
            </controls:PanoramaItem>

            <!--Panorama item four-->
            <controls:PanoramaItem Header="moja agenda">
                <Grid>
                    <ContentControl Template="{StaticResource NoFavsTextBlock}" 
                    Visibility="{Binding FavouriteSessionInfos.IsEmpty, Converter={StaticResource VisibilityConverter}}"
                                    />
                    <toolkit:LongListSelector x:Name="favouriteSessions" Background="Transparent"                    
                        Visibility="{Binding FavouriteSessionInfos.IsEmpty, Converter={StaticResource NegativeVisibilityConverter}}"                      
                        ItemsSource="{Binding FavouriteSessionInfos}"                     
                        GroupHeaderTemplate="{StaticResource sessionGroupHeader}"
                                         
                        ItemTemplate="{StaticResource favouriteSessionItemTemplate}">
                    </toolkit:LongListSelector>
                </Grid>
            </controls:PanoramaItem>

        </controls:Panorama>
    </Grid>

    <!--Application Bar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="true" >
            <shell:ApplicationBarIconButton Text="Osveži" IconUri="/Resources/Icons/appbar.sync.rest.png" />
            <shell:ApplicationBarIconButton Text="Podesi" IconUri="/Resources/Icons/appbar.feature.settings.rest.png" />
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="o aplikaciji" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

    <!--<Custom:Interaction.Behaviors>
        <Behaviours:BindableApplicationBarBehaviour IsVisible="{Binding IsAppBarVisible}"/>
        <prismInteractivity:ApplicationBarButtonCommand ButtonText="Podesi" CommandBinding="{Binding AppSettingsCommand}" />
        <Behaviours:ApplicationBarMenuItemCommand ButtonText="o aplikaciji" CommandBinding="{Binding AboutAppCommand}"/>
    </Custom:Interaction.Behaviors>-->

    <Custom:Interaction.Triggers>
        <!--<prismInteractionRequest:InteractionRequestTrigger SourceObject="{Binding SubmitNotificationInteractionRequest}">
            <prismInteractionRequest:ToastPopupAction PopupElementName="SynchronizationToast" />
        </prismInteractionRequest:InteractionRequestTrigger>-->
        <Custom:EventTrigger EventName="Loaded">
            <Custom:InvokeCommandAction Command="{Binding OnLoadedCommand}" />
        </Custom:EventTrigger>
        
        <Custom:EventTrigger SourceObject="{Binding SubmitNotificationInteractionRequest}" EventName="Raised">
            <prismInteractionRequest:ToastPopupAction PopupElementName="SynchronizationToast" />
        </Custom:EventTrigger>

        <Custom:EventTrigger SourceObject="{Binding SubmitErrorInteractionRequest}" EventName="Raised">
            <prismInteractionRequest:MessageBoxAction />
        </Custom:EventTrigger>

        <Custom:EventTrigger SourceObject="{Binding AboutAppInteractionRequest}" EventName="Raised">
            <prismInteractionRequest:MessageBoxAction/>
        </Custom:EventTrigger>
    </Custom:Interaction.Triggers>

</phone:PhoneApplicationPage>